package solution;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ws
 * Date: 2023-01-17
 * Time: 21:16
 */
public class Solution4 {

    public static void main(String[] args) {
        double height = 50;
        double sum = 100;
        for (int i = 1; i < 10; i++) {
            sum += height * 2;
            height /= 2.0;
        }
        System.out.println("第十次的总距离" + sum);
        System.out.println("第十次反弹高度" + height);
    }
}
